package com.yyh.BookLendSystem.dao;

import java.sql.SQLException;
import java.util.Map;

import API.JDBC.Ten26.DBHelper;



public class ReaderDao {
	/**
	 * 用户登录查询方法
	 * @param args
	 * @throws SQLException 
	 */
	public Map<String, Object> selectForLogin(String name , String pwd) throws SQLException{
		String sql = "select * from reader where name = ? and pwd = ?";
		return DBHelper.selectOneMap(sql, name,pwd);
	}

}
